package org.prem.collection.comparator;

import java.util.Comparator;

public class DogStringComparable implements Comparable<DogStringComparable> {
	
	DogStringComparable(String name,int age){
		this.name = name;
		this.age = age;
	}

	private String name;
	
	private int age;

	
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public int getAge() {
		return age;
	}


	public void setAge(int age) {
		this.age = age;
	}


	@Override
	public int compareTo(DogStringComparable arg0) {
		System.out.println(this.name.compareTo(arg0.getName()));
		return this.name.compareTo(arg0.getName());
	}

/*	@Override
	public int compare(T o1, T o2) {
		// TODO Auto-generated method stub
		return 0;
	}*/

}
